from django.conf.urls.defaults import (
    handler404 as default_handler404,
    include as default_include,
    patterns,
    url as default_url
)
from django.contrib import admin

handler404 = default_handler404
handler500 = 'djangotoolbox.errorviews.server_error'
include = default_include
url = default_url

admin.autodiscover()
urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
    ('^_ah/warmup$', 'djangoappengine.views.warmup'),

    ('^resources/(?P<path>.*)$', 'django.views.static.serve',
     {'document_root': 'static/resources', 'show_indexes': False}),

    ('^budget$', 'budget.views.index'),
    ('^accounts/login$', 'accounts.views.sign_in'),
    ('^accounts/logout$', 'accounts.views.sign_out'),
    ('^accounts/signup$', 'accounts.views.sign_up'),
    ('^$', 'accounts.views.default'),
)

